package org.springblade.modules.repair.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.modules.repair.dto.RobotMessageDTO;

/**
    * 维保签到明细
    */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "blade_maintain_sign")
public class MaintainSign extends TenantEntity {
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 计划id
     */
    @TableField(value = "plan_id")
    private Long planId;

    /**
     * 签到图片地址
     */
    @TableField(value = "sign_image")
    private String signImage;

    /**
     * 签到描述
     */
    @TableField(value = "sign_desc")
    private String signDesc;

    /**
     * 签到状态：1-正常 2-异常
     */
    @TableField(value = "sign_status")
    private Integer signStatus;

    /**
     * 经度
     */
    @TableField(value = "sign_longitude")
    private String signLongitude;

    /**
     * 纬度
     */
    @TableField(value = "sign_latitude")
    private String signLatitude;

    /**
     * 签到地址
     */
    @TableField(value = "sign_address")
    private String signAddress;

	/**
	 * 签到时间
	 */
	@TableField(value = "sign_time")
	private Date signTime;

    /**
     * 签退图片地址
     */
    @TableField(value = "sign_out_image")
    private String signOutImage;

    /**
     * 签退描述
     */
    @TableField(value = "sign_out_desc")
    private String signOutDesc;

    /**
     * 签退状态：1-正常 2-异常
     */
    @TableField(value = "sign_out_status")
    private Integer signOutStatus;

    /**
     * 签退经度
     */
    @TableField(value = "sign_out_longitude")
    private String signOutLongitude;

    /**
     * 签退纬度
     */
    @TableField(value = "sign_out_latitude")
    private String signOutLatitude;

    /**
     * 签退签到地址
     */
    @TableField(value = "sign_out_address")
    private String signOutAddress;

	/**
	 * 签退时间
	 */
	@TableField(value = "sign_out_time")
	private Date signOutTime;

	/**
	 * 时间间隔
	 */
	@TableField(value = "time_interval")
	private Long timeInterval;

	/**
	 * 签到人名称
	 */
	@TableField(exist = false)
	private String userName;

	/**
	 * 工单预计完成时间
	 */
	@TableField(exist = false)
	private Date finishDate;

	/**
	 * 电梯运行状态
	 */
	@TableField(exist = false)
	private Integer isStop;

	/**
	 * 电梯运行状态同步消息模板
	 */
	@TableField(exist = false)
	private RobotMessageDTO messageDTO;

	/**
	 * 按钮类型：0-签退，1-完成里签退
	 */
	@TableField(exist = false)
	private Integer buttonType = 0;


}
